import java.util.Scanner;

public class demo6 {
    public static void main(String[] args) {
        Scanner input1 = new Scanner(System.in);
        System.out.println("要输入几个数");
        int n = input1.nextInt();
        int[] a = new int[n];
        int[] b = new int[n];
        System.out.println("输入这些数");
        for (int i = 0; i < n; i++) {
            Scanner input2=new Scanner(System.in);
            a[i]= input2.nextInt();
        }
        for (int i = 0, j=a.length-1; i < n; i++,j--) {
            b[i]=a[j];
        }
        for (int i = 0; i < n; i++) {
            System.out.print(b[i]+" ");
        }


    }
}
